package com.bharatonjava.hospital.web;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping(value = "/patho")
public class PathologyController {

	private final Logger log = Logger.getLogger(PathologyController.class);
	
	
	/**
	 * Prepares new patient test entry form.
	 * @return
	 */
	@RequestMapping(value = "/add", method = RequestMethod.GET)
	public ModelAndView preparePatientTestsEntryForm(@RequestParam("patientId") Long patientId ) {
		log.info("PathologyController - patientTestsEntry");
		ModelAndView mav = new ModelAndView();
		// get list of available tests from db. 
		
		mav.setViewName("addPatientPathoTest"); 
		return mav;
	}
}
